import axios from "@/axios";

//获取文章分页数据
export function getArticleList (data){
    return axios.post("/admin/article/list",data);
}

//文章删除接口
export function deleteArticle (id){
    return axios.post("/admin/article/delete",id);
}

//文章发布接口
export function publishArticle (data){
    return axios.post("/admin/article/publish",data);
}

//获取文章详情接口
export function getArticleDetail (data){
    return axios.post("/admin/article/detail",data);
}

//文章更新接口
export function updateArticle (data){
    return axios.post("/admin/article/update",data);
}